<%--
  Created by IntelliJ IDEA.
  User: 86188
  Date: 2022/6/8
  Time: 13:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h2>主页</h2>
<div>
    <h1>欢迎你！${user.userName}</h1>
    <a href="/logout" role="button">退出登录</a>
</div>
<div>
    <c:if test="${not empty boardList }">
        <h1>所有的板块</h1>
        <c:forEach items="${boardList}" var="board" >
            <a href="/topic/getTopicByBoardId?boardId=${board.boardId}">
                <div>
                    <div>${board.name}</div>
                    <div>${board.desc}</div>
                </div>
            </a>
        </c:forEach>
    </c:if>
</div>
</body>
</html>
